# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
# Contributor: Alisa Dammer <alisa,dammer@gmail.com>
# Contributor: Jaroslav Janukevic (janukevic <at> gmail <dot> com)
# Contributor: Rick Rein <jeebusroxors@gmail.com>
# Contributor: samuellittley <supersam.littley@gmail.com>

pkgname=xprintidle
pkgver=0.2.5
pkgrel=1
pkgdesc='Print X idle time'
arch=('loong64' 'x86_64')
license=('GPL2')
depends=('libxss')
makedepends=('meson')
url='https://github.com/g0hl1n/xprintidle'
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('758fbb1e0e0f9eaf6ae22cc3fbacaf3eb854130af3688bd95c88c690284cf47256a56d1468ffffaa81c3432cd579aca138a47c8a04be1e7be52e8f2ef328fd7a')

build() {
  mkdir $pkgname-$pkgver/build
  cd $pkgname-$pkgver/build

  arch-meson ..

  ninja
}

package() {
  cd $pkgname-$pkgver/build

  DESTDIR="$pkgdir" ninja install
}

